<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: XorTree&lt; N, M &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_xor_tree.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_xor_tree-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">XorTree&lt; N, M &gt; Class Template Reference<div class="ingroups"><a class="el" href="group___b_p.html">Basic Primitives</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="xor__tree_8h_source.html">xor_tree.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af69211493a22429ccc38ca8dcbdcd9c4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#af69211493a22429ccc38ca8dcbdcd9c4">XorTree</a> (int <a class="el" href="class_xor_tree.html#adbec4bd5ec40bee293c71c69c50c3ebd">n</a>, int <a class="el" href="class_xor_tree.html#a9ca6435f85c74f86584bfd24f8e30866">ssp</a>=40)</td></tr>
<tr class="separator:af69211493a22429ccc38ca8dcbdcd9c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a406396309c9b8f76b5706225aba1ae35"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#a406396309c9b8f76b5706225aba1ae35">circuitN</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *out, <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *in, int dim=N)</td></tr>
<tr class="separator:a406396309c9b8f76b5706225aba1ae35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f669624bfe400630850716046096cfc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#a3f669624bfe400630850716046096cfc">circuit</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *out, <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *in)</td></tr>
<tr class="separator:a3f669624bfe400630850716046096cfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5b747f402fc2e8bae9498879871c295"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#ac5b747f402fc2e8bae9498879871c295">genN</a> (bool *out, bool *in, <a class="el" href="class_p_r_g.html">PRG</a> *prg, int dim=N)</td></tr>
<tr class="separator:ac5b747f402fc2e8bae9498879871c295"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09bb4de1c5f3eab9134248695cd90941"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#a09bb4de1c5f3eab9134248695cd90941">output_size</a> ()</td></tr>
<tr class="separator:a09bb4de1c5f3eab9134248695cd90941"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a5f515b56302a2898a81dedf9e1e2cc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#a4a5f515b56302a2898a81dedf9e1e2cc">input_size</a> ()</td></tr>
<tr class="separator:a4a5f515b56302a2898a81dedf9e1e2cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae93134171f86f8610b48ab8eed01fa35"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#ae93134171f86f8610b48ab8eed01fa35">gen</a> (bool *out, bool *in)</td></tr>
<tr class="separator:ae93134171f86f8610b48ab8eed01fa35"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:adbec4bd5ec40bee293c71c69c50c3ebd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#adbec4bd5ec40bee293c71c69c50c3ebd">n</a></td></tr>
<tr class="separator:adbec4bd5ec40bee293c71c69c50c3ebd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ca6435f85c74f86584bfd24f8e30866"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#a9ca6435f85c74f86584bfd24f8e30866">ssp</a></td></tr>
<tr class="separator:a9ca6435f85c74f86584bfd24f8e30866"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af82684ce03b95a9243330850eddce0cf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#af82684ce03b95a9243330850eddce0cf">matrix</a> [N][M]</td></tr>
<tr class="separator:af82684ce03b95a9243330850eddce0cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e1a7b19f1313b55b3b2ebd63fe4a493"><td class="memItemLeft" align="right" valign="top"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xor_tree.html#a8e1a7b19f1313b55b3b2ebd63fe4a493">blockM</a> [N][M]</td></tr>
<tr class="separator:a8e1a7b19f1313b55b3b2ebd63fe4a493"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="af69211493a22429ccc38ca8dcbdcd9c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af69211493a22429ccc38ca8dcbdcd9c4">&sect;&nbsp;</a></span>XorTree()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::<a class="el" href="class_xor_tree.html">XorTree</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ssp</em> = <code>40</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3f669624bfe400630850716046096cfc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f669624bfe400630850716046096cfc">&sect;&nbsp;</a></span>circuit()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::circuit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>in</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a406396309c9b8f76b5706225aba1ae35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a406396309c9b8f76b5706225aba1ae35">&sect;&nbsp;</a></span>circuitN()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::circuitN </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em> = <code>N</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ae93134171f86f8610b48ab8eed01fa35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae93134171f86f8610b48ab8eed01fa35">&sect;&nbsp;</a></span>gen()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::gen </td>
          <td>(</td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>in</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac5b747f402fc2e8bae9498879871c295"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5b747f402fc2e8bae9498879871c295">&sect;&nbsp;</a></span>genN()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::genN </td>
          <td>(</td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_p_r_g.html">PRG</a> *&#160;</td>
          <td class="paramname"><em>prg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em> = <code>N</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a4a5f515b56302a2898a81dedf9e1e2cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a5f515b56302a2898a81dedf9e1e2cc">&sect;&nbsp;</a></span>input_size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::input_size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a09bb4de1c5f3eab9134248695cd90941"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09bb4de1c5f3eab9134248695cd90941">&sect;&nbsp;</a></span>output_size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::output_size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a8e1a7b19f1313b55b3b2ebd63fe4a493"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e1a7b19f1313b55b3b2ebd63fe4a493">&sect;&nbsp;</a></span>blockM</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::blockM[N][M]</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af82684ce03b95a9243330850eddce0cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af82684ce03b95a9243330850eddce0cf">&sect;&nbsp;</a></span>matrix</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::matrix[N][M]</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="adbec4bd5ec40bee293c71c69c50c3ebd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbec4bd5ec40bee293c71c69c50c3ebd">&sect;&nbsp;</a></span>n</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::n</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9ca6435f85c74f86584bfd24f8e30866"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ca6435f85c74f86584bfd24f8e30866">&sect;&nbsp;</a></span>ssp</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int N = 232, int M = 232&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_xor_tree.html">XorTree</a>&lt; N, M &gt;::ssp</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/wangxiao/git/emp-toolkit/emp-tool/utils/<a class="el" href="xor__tree_8h_source.html">xor_tree.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_xor_tree.html">XorTree</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
